﻿namespace VOL.WebApi.Common
{
    /// <summary>
    /// API返回结果
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class APIResult<T> where T : class
    {
        /// <summary>
        /// 数据
        /// </summary>
        public T Data { get; set; } = null!;
        /// <summary>
        /// 消息
        /// </summary>
        public string Message { get; set; } = string.Empty;
        /// <summary>
        /// 状态码
        /// </summary>
        public APIEnum Code { get; set; }
    }
}
